﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContentPropertyManage.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Common.ContentPropertyManage" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>

<html>
<head runat="server">
    <title>内容属性管理</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>

    <%: Styles.Render("~/Content/Bootstrap/css") %>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>

                <BootStrap:Breadcrumb ID="BC_Path" runat="server"></BootStrap:Breadcrumb>
                <table style="width: 100%;">
                    <tr>
                        <td colspan="3" class="HeaderStyle">&nbsp; 添加&nbsp; &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;
                名称：<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                            &nbsp;
                <asp:Button ID="btnAdd" runat="server" CssClass="btn btn-default" Text="添加"
                    OnClick="btnAdd_Click" ValidationGroup="Add" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                ControlToValidate="txtName" ErrorMessage="请输入名称" ValidationGroup="Add"></asp:RequiredFieldValidator>
                        </td>
                        <td>&nbsp;
                        </td>
                        <td>&nbsp;
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" OnRowCancelingEdit="GV_List_RowCancelingEdit"
                    OnRowDeleting="GV_List_RowDeleting" OnRowEditing="GV_List_RowEditing"
                    OnRowUpdating="GV_List_RowUpdating" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <HeaderTemplate>
                                <input type="checkbox" name="chkHeader" value="chkHeader" onclick="javascript: SelectAll(this);" />
                            </HeaderTemplate>
                            <HeaderStyle Width="30px" />
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbkSelectID" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" Visible="False">
                            <HeaderStyle Width="50px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" HeaderText="名称" />
                        <asp:BoundField DataField="UpDateTime"
                            DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="更新时间" HtmlEncode="False"
                            ReadOnly="True">
                            <HeaderStyle Width="120px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:CommandField EditText="修改" ShowEditButton="True">
                            <HeaderStyle Width="120px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:CommandField>
                        <asp:CommandField ShowDeleteButton="True">
                            <HeaderStyle Width="60px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
                </asp:GridView>

                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server"
                    OnPageChanging="PageNavigation1_PageChanging">
                </WinnerCMS:PageNavigation>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
